package com.share.dubbo.ssm.model.mongo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

/**
 * Document.collection  指定集合(指定表)
 *
 * @id 指定主键
 * @Field 指定映射的字段
 */
@Data
@Document(collection = "tl_java_log")
public class JavaLog implements Serializable {
    @Id
    private String id;
    @Field
    private String message;
    @Field
    private String logger;
    @Field
    private String thread;
    @Field
    private Date timestamp;
    @Field
    private String level;
    @Field
    private String ip;
    @Field
    private String serverPort;
}